package com.hong.concurrent.chapter7;

/**
 * @Author csh
 * @Description
 * @Date 2018/7/2 22:54
 */
public class UsePersonThread extends  Thread{

    private Person person;

    public UsePersonThread(Person person){
        this.person = person;
    }

    @Override
    public void run() {
        while (true){
            System.out.println(Thread.currentThread().getName()+" print "+person.toString());
        }
    }
}
